export const searchProps = [
  {
    type: 'input',
    value: 'institutionName',
    name: '机构名称',
    style: {
      width: '180px',
    },
    placeholder: '请输入',
  },
  {
    type: 'date',
    value: 'time',
    name: '日期',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '240px',
    },
  },
];

export const columns = [
  {
    dataIndex: 'time',
    title: '时间',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 120,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },

  {
    dataIndex: 'institutionName',
    title: '机构名称',
    align: 'center',
    ellipsis: true,
    isbool: true,
    width: 120,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },

  {
    dataIndex: 'institutionCity',
    title: '机构城市',
    align: 'center',
    ellipsis: true,
    isbool: true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'cityPrice',
    title: '城市单价',
    align: 'center',
    ellipsis: true,
    isbool: true,
    width: 120,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'sysCount',
    title: '进件数',
    align: 'center',
    ellipsis: true,
    isbool: true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'clearPrice',
    title: '机构消耗',
    align: 'center',
    ellipsis: true,
    isbool: true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'advancePayment',
    title: '充值金额',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) =>  text + '%',
  },
  {
    dataIndex: 'balance',
    title: '余额',
    align: 'center',
    ellipsis: true,
    isbool: true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'billStatus',
    title: '账单状态',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 180,
    scopedSlots: { customRender: 'billStatus' },
  },

  {
    dataIndex: 'remark',
    title: '备注',
    align: 'center',
    ellipsis: true,
    isbool: true,
    width: 150,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    title: '操作',
    width: 160,
    align: 'center',
    isbool: true,
    fixed: 'right',
    dataIndex: 'operation',
    scopedSlots: {
      customRender: 'operation',
    },
  },
];